﻿project(txr_algo_dlm_rec_v1 LANGUAGES CXX CUDA)

add_definitions(-DTXR_ALGO_DLM_REC_V1_LIB)

include_directories(
	${BOOST_INCLUDEDIR}
	${MY_CUDA_INCLUDE_DIRS}
	${MY_CUDNN_INCLUDE_DIR}
	${MY_TRT_INCLUDE_DIR}
	${MY_CRYPTOPP_INCLUDE_DIR}
	${MY_OPENCV_INCLUDE_DIR}
)
link_directories(
	${Boost_LIBRARY_DIRS}
	${MY_CUDA_LIBRARY_DIRS}
	${MY_CUDNN_LIB_DIR}
	${MY_TRT_LIB_DIR}
	${MY_CRYPTOPP_LIB_DIR}
	${MY_OPENCV_LIBS_DIR}
)

set(ALGO_DLM_REC_V1_LIBS 
	Qt5::Core
	Qt5::Gui
	${MY_CUDA_LIBS} curand cublas 
	dxgi 
	${MY_CUDNN_LIB}
	${MY_TRT_LIBS}
	${MY_CRYPTOPP_LIB}
	${MY_OPENCV_LIBS}
)
file(GLOB_RECURSE CURRENT_HEADERS  *.h *.hpp)
file(GLOB_RECURSE CURRENT_SOURCES  *.c *.cpp)
file(GLOB_RECURSE CURRENT_CUDA_SOURCES *.cu *.cuh)
source_group("Include" FILES ${CURRENT_HEADERS}) 
source_group("Source" FILES ${CURRENT_SOURCES})
source_group("CuSource" FILES ${CURRENT_CUDA_SOURCES})

add_library(txr_algo_dlm_rec_v1  SHARED
	${CURRENT_HEADERS} 
	${CURRENT_SOURCES} 
	${CURRENT_CUDA_SOURCES}
	)

target_link_libraries(txr_algo_dlm_rec_v1 PRIVATE ${ALGO_DLM_REC_V1_LIBS})



install(TARGETS txr_algo_dlm_rec_v1 DESTINATION 
        RUNTIME DESTINATION bin
        ARCHIVE DESTINATION lib
        LIBRARY DESTINATION lib
)